package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.wemedia.entity.WmNewsMaterial;

import java.util.List;

public interface WmNewsMaterialService extends IService<WmNewsMaterial> {

    /**
     * 根据自媒体文章id 删除关系
     *
     * @param newId
     */
    void deleteByNewsId(Integer newId);

      /**
     * 批量保存文章素材中间表
     * @param materialIds
     * @param wmNewsId
     * @param type
     */
    void saveInfoBatch(List<Integer> materialIds, Integer wmNewsId, int type);
}